package com.gorillalogic.scrummonkey.events {
	import flash.events.Event;

	public class ColorEvent extends Event {
		public static const COLORIZE_RELEASES:String = 'colorRelease';
		public static const COLORIZE_ITERATIONS:String = 'colorIteration';
		public static const COLORIZE_OBJECTIVES:String = 'colorObjective';
		public static const CLEAR_ALL:String = 'colorClearAll';
		public static const CLEAR_OBJECTIVES:String = 'colorClearObjective';

		private var _releaseId:int;
		private var _iterationId:int;

		public function ColorEvent(type:String, releaseId:int=-1, iterationId:int=-1, bubbles:Boolean = false, cancelable:Boolean = false) {
			super(type, bubbles, cancelable);
			_releaseId = releaseId;
			_iterationId = iterationId;
		}

		override public function clone():Event {
			return new ColorEvent(type, _releaseId, _iterationId, bubbles, cancelable);
		}

		public function get releaseId():int {
			return _releaseId;
		}
		public function get iterationId():int {
			return _iterationId;
		}

		override public function toString():String {
			return 'ColorEvent: type=' + type;
		}
	}
}